package org.example.domain.strategy.service.rule.chain;

import lombok.extern.slf4j.Slf4j;

/**
 * 抽奖策略责任链，判断走哪种抽奖规则，如：默认抽奖、权重抽奖、黑名单抽奖
 */
@Slf4j
public abstract class AbstractLogicChain implements ILogicChain{

    private ILogicChain next;

    //获取责任链上的下一个
    @Override
    public ILogicChain next() {
        return next;
    }

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        return this.next = next;
    }

    //获取规则字符串
    protected abstract String ruleModel();
}
